#include "mainwindow.h"
#include <QApplication>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    MainWindow w;
    w.show();

    for(int i=0; i<8; i++)
    {
        for(int j=0; j<8; j++)
        {
            w.FeldFig[i][j].art = 0;
            w.FeldFig[i][j].color = 0;
            w.FeldFig[i][j].possible = 0;
            w.FeldFig[i][j].dead = 0;
        }
    }

    w.FeldFig[0][0].art = 2;
    w.FeldFig[1][0].art = 4;
    w.FeldFig[2][0].art = 3;
    w.FeldFig[3][0].art = 5;
    w.FeldFig[4][0].art = 6;
    w.FeldFig[5][0].art = 3;
    w.FeldFig[6][0].art = 4;
    w.FeldFig[7][0].art = 2;

    w.FeldFig[0][0].color = 0;
    w.FeldFig[1][0].color = 0;
    w.FeldFig[2][0].color = 0;
    w.FeldFig[3][0].color = 0;
    w.FeldFig[4][0].color = 0;
    w.FeldFig[5][0].color = 0;
    w.FeldFig[6][0].color = 0;
    w.FeldFig[7][0].color = 0;

    w.FeldFig[0][7].art = 2;
    w.FeldFig[1][7].art = 4;
    w.FeldFig[2][7].art = 3;
    w.FeldFig[3][7].art = 5;
    w.FeldFig[4][7].art = 6;
    w.FeldFig[5][7].art = 3;
    w.FeldFig[6][7].art = 4;
    w.FeldFig[7][7].art = 2;

    w.FeldFig[0][7].color = 1;
    w.FeldFig[1][7].color = 1;
    w.FeldFig[2][7].color = 1;
    w.FeldFig[3][7].color = 1;
    w.FeldFig[4][7].color = 1;
    w.FeldFig[5][7].color = 1;
    w.FeldFig[6][7].color = 1;
    w.FeldFig[7][7].color = 1;

    int i;
    for(i=0;i<8;i++)
    {
      w.FeldFig[i][1].art = 1;
      w.FeldFig[i][1].color = 0;
      w.FeldFig[i][6].art = 1;
      w.FeldFig[i][6].color = 1;
    }


    w.WindowHeight = w.height();
    w.WindowWidth = w.width();
    
    return a.exec();
}
